<template>
  <div>
    <div>
      <el-row>
        <el-col>
          <span>心理状态</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.xinli_peihe_radio1">
              <el-radio :label="1">焦虑</el-radio>
              <el-radio :label="2">抑郁</el-radio>
              <el-radio :label="3">正常</el-radio>
              <el-radio :label="4">/</el-radio>
              <el-input v-model="pgForm.xinli_peihe_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <span>配合程度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.xinli_peihe_radio2">
              <el-radio :label="1">消极</el-radio>
              <el-radio :label="2">一般</el-radio>
              <el-radio :label="3">积极</el-radio>
              <el-radio :label="4">/</el-radio>
              <el-input v-model="pgForm.xinli_peihe_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "xinli_peihe",
  title: "心理状态及配合程度",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        xinli_peihe_input1: '',
        xinli_peihe_input2: '',
        xinli_peihe_radio1: '',
        xinli_peihe_radio2: '',
      }
    }
  }
}
</script>

<style scoped>
.el-row {
  margin: 10px 0;
  padding: 20px 10px;
  background-color: #f9f9f9;
}
.el-radio-group{
  padding-left: 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
